package org.example.controller;

import jakarta.annotation.Resource;
import org.example.bean.Student;
import org.example.service.UserService;
import org.example.util.JsonResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:StudentController
 * @Date:2025/9/16 11:43
 */
@RestController
@RequestMapping("/auth")
public class StudentController {
    @Resource
    private UserService userService;

    @PostMapping
    JsonResult login(Student student) {
        return userService.login(student);
    }

}
